package pe.com.trener.layer.view.principal.action;

/**
 * @author:   Oscar Erick Candela Carbajal
 * @rol:	  Analista Programador Web Java
 * @proyecto: Portal Trener
 *
 */

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionForward;
import org.apache.struts.actions.DispatchAction;
import org.springframework.web.struts.ActionSupport;
import org.springframework.web.struts.DispatchActionSupport;

public class InicioAction extends DispatchActionSupport  {
    
	private Log logger = LogFactory.getLog(this.getClass());
          
    public ActionForward mostrarInicio(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) 
    throws Exception {
        try {
	    	logger.info("Ingresa al action: InicioAction.");
	    	logger.info("Ingresa al metodo: mostrarInicio.");
	        
	        logger.info("Salir del metodo: mostrarInicio.");   
	        logger.info("Salir del action: InicioAction.");
	        return mapping.findForward("success-most-inic");
	    } catch(Exception e){
			e.printStackTrace();
			return mapping.findForward("failure");
	    } finally {        	
	    }         
    }    
}